<script setup lang="ts">
import { onMounted } from 'vue'
import axios from 'axios'

const initData =async ()=>{
    console.log('ddd')
    let {data}=await axios.get('http://localhost:8080/textbook/index')

    console.log(data)
}

onMounted(()=>{
    console.log('ddd111')
    initData()
})


</script>

<template> 
<div>
    <h1>book ----</h1>
</div>
</template>

<style scoped></style>
